import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import { createPinia } from 'pinia'
import 'element-plus/dist/index.css'
import router from './router'      //
import * as ElementPlusIconsVue from '@element-plus/icons-vue';



const app = createApp(App)
 
// 全局导入plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
  }

app.use(ElementPlus)
app.use(router)
app.use(createPinia()) // 使用 Pinia
app.mount('#app')